<?= $this->render('public/header', array()); ?>
<link rel="stylesheet" href="<?= app()->adminStatic; ?>/layuiadmin/style/login.css" media="all">
<body>

<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login">

    <div class="layadmin-user-login-main">
        <div class="layadmin-user-login-box layadmin-user-login-header">
            <h2>欢迎登陆</h2>
            <p>后台管理系统</p>
        </div>
        <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
            <div class="layui-form-item">
                <label class="layadmin-user-login-icon layui-icon layui-icon-username"
                       for="LAY-user-login-username"></label>
                <input type="text" name="username" id="LAY-user-login-username" lay-verify="required" placeholder="用户名"
                       class="layui-input">
            </div>
            <div class="layui-form-item">
                <label class="layadmin-user-login-icon layui-icon layui-icon-password"
                       for="LAY-user-login-password"></label>
                <input type="password" name="password" id="LAY-user-login-password" lay-verify="required"
                       placeholder="密码" class="layui-input">
            </div>
            <div class="layui-form-item">
                <button class="layui-btn layui-btn-fluid" onclick="login()">登 入</button>
            </div>
        </div>
    </div>

    <div class="layui-trans layadmin-user-login-footer">
        <p>© 2018 <a href="https://www.lfy0.com/" target="_blank">www.lfy0.com</a></p>
    </div>
</div>

<script type="text/javascript">
    function login() {
        var username = $("#LAY-user-login-username").val();
        var password = $("#LAY-user-login-password").val();
        if (!username || !password) {
            return false;
        }
        lfyAdmin.login(username, password)
    }
</script>
</body>
</html>